<!-- 
    @author Wójcik Karol <wojcikk@student.agh.edu.pl>
    @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
-->

<html>
<head>
  <title>System Planowania Zajec</title>
  
  <%= stylesheet_link_tag 'default' %>
  <%= javascript_include_tag :defaults %>
  <%= javascript_include_tag "JSCookMenu.js" %>
  <%= javascript_include_tag "theme.js" %>
  
  <%= if session['user'].role == "admin"
		javascript_include_tag "menu_admin.js"
	  else
		javascript_include_tag "menu_user.js"
      end
    %>


</head>
<body>
<div id="header">
        <div id="logged">
	<%= session['user'].login-%>#<%= session['user'].role -%>
	</div>
        <ul id="menu">
        <div id="myMenuID">
                        <script type="text/javascript">
                cmDraw ('myMenuID', myMenu, 'hbr', cmThemePanel);
                        </script>
                </div>
        </ul>
</div>

<%= @content_for_layout %>

</body>
</html>
